<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@	page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="midContextPath" value='<%=ServerValue.getMidContextPath()%>'/>
<script language="javascript">
	$().ready( function() {
		$("#save").click(function(){

			if ($("#orderIdParam").val() == "" ){
				alert("请输入原始订单编号");
				$("#orderIdParam").focus();
				return false;		
			}
			if ($("#serviceIdParam").val() == "" ){
				alert("请输入服务单编号");
				$("#serviceIdParam").focus();
				return false;		
			}
			if ($("#shipCompanyParam").val() == "" ){
				alert("请输入会员寄送物流公司");
				$("#shipCompanyParam").focus();
				return false;		
			}
			if ($("#shipNoParam").val() == "" ){
				alert("请输入会员寄送物流单编号");
				$("#shipNoParam").focus();
				return false;		
			}
		});
	});
</script>
<form name="target" action="/ecadmin/serviceOrder/trackcase/save.do" method="post">
<br />
<h1>新增退换货追踪案件</h1>
<font color="red">
<s:actionerror />
<s:actionmessage />
<s:fielderror /></font>
<table class="tb-data" width="100%">
		<tr>
			<th>追踪案件编号</th>			
			<td> 
				<c-rt:choose>
					<c-rt:when test="${empty inboundTrackingCase.caseId}">系统流水号发放</c-rt:when>
					<c-rt:otherwise>
					${inboundTrackingCase.caseId}
					</c-rt:otherwise>
				</c-rt:choose>
			</td>
		</tr>
		<tr>
			<th><span class="txt-red">*</span>原始订单编号</th>			
			<td> <input type="text" id="orderIdParam" name="orderIdParam" value="${orderIdParam ne '' ?orderIdParam:inboundTrackingCase.orderId}"/>
			</td>
		</tr>
		<tr>
			<th><span class="txt-red">*</span>服务单编号</th>			
			<td> <input type="text" id="serviceIdParam" name="serviceIdParam" value="${serviceIdParam ne '' ?serviceIdParam:inboundTrackingCase.serviceOrderId}"/>
			</td>
		</tr>
		<tr>
			<th><span class="txt-red">*</span>追踪案件类型</th>			
			<td> 
					<input id="caseType1" name="caseTypeParam" type="radio" value="1" <c-rt:if test="${empty inboundTrackingCase.caseType or inboundTrackingCase.caseType eq '1' or caseTypeParam eq '1'}">checked="checked"</c-rt:if>/>退货
		    		<input id="caseType2" name="caseTypeParam" type="radio" value="2" <c-rt:if test="${inboundTrackingCase.caseType eq '2' or caseTypeParam eq '2'}">checked="checked"</c-rt:if>/>换货	
			</td>
		</tr>
		<tr>
			<th><span class="txt-red">*</span>会员寄送物流公司</th>			
			<td> <input type="text" id="shipCompanyParam" name="shipCompanyParam" value="${inboundTrackingCase.shipCompany}"/>
			</td>
		</tr>
		<tr>
			<th><span class="txt-red">*</span>会员寄送物流单编号</th>			
			<td> <input type="text" id="shipNoParam" name="shipNoParam" value="${inboundTrackingCase.shipNo}"/>
			</td>
		</tr>
		<tr><td colspan="2">
			<input type="submit" name="submit" id="save" value="储     存"/>
				<div class="f-link"><a href="search.do">回查询列表</a></div>
			</td>
	  </tr>
</table>
	</form>